package org.jeecg.modules.website.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.website.entity.WebWorkFile;
import org.jeecg.modules.website.mapper.WebWorkFileMapper;
import org.jeecg.modules.website.service.IWebWorkFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 附件表
 * @Author: jeecg-boot
 * @Date:   2024-07-09
 * @Version: V1.0
 */
@Service
public class WebWorkFileServiceImpl extends ServiceImpl<WebWorkFileMapper, WebWorkFile> implements IWebWorkFileService {
	
	@Autowired
	private WebWorkFileMapper webWorkFileMapper;
	
	@Override
	public List<WebWorkFile> selectByMainId(String mainId) {
		return webWorkFileMapper.selectByMainId(mainId);
	}
	@Override
	public List<WebWorkFile> selectByMainIdAndFileType( String mainId , String fileType){
		return webWorkFileMapper.selectByMainIdAndFileType(mainId,fileType);
	}
}
